package com.woniuxy.fegin;

import com.woniuxy.fegin.hystrix.GoodsHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Administrator
 * @title:
 * @projectName mashangpai
 * @description: TODO
 * @date 2019/9/2718:11
 */
@FeignClient(value = "goods-server", fallback = GoodsHystrix.class)
public interface GoodsFeign {

    @PostMapping("/updateStatus/{aid}/{status}")
    public void updateStatus(@PathVariable Integer aid, @PathVariable Integer status);
}
